package me.minecraft.plugin.itemsave.command;

import me.minecraft.plugin.itemsave.config.MainConfig;
import me.minecraft.plugin.itemsave.config.MessageConfig;
import me.minecraft.plugin.itemsave.manager.ItemManager;
import org.bukkit.command.CommandSender;

/**
 * @author langle__
 * @version 1.0
 */
public class ReloadCommand extends SubCommand {

    @Override
    public void onCommand(CommandSender sender, String[] args) {
        MainConfig.INSTANCE.load();
        MessageConfig.INSTANCE.load();
        ItemManager.INSTANCE.load();
        sender.sendMessage(MessageConfig.INSTANCE.getReload());
    }

}
